package com.lkl.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lkl.demo.entity.Goods;
import com.lkl.demo.vo.GoodsVo;

import java.util.List;

/**
 * 商品表 Mapper 接口
 *
 * @author likelong
 * @date 2022-07-26
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 获取商品列表
     */
    List<GoodsVo> findGoodsVo();

    /**
     * 查看商品详情
     * @param goodsId 商品id
     */
    GoodsVo findGoodsVoByGoodsId(Long goodsId);
}
